package com.nageoffer.shortlink.admin.common.enums;

import com.nageoffer.shortlink.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnum implements IErrorCode {
    USER_NULL("B000200", "用户记录不存在"),
    USER_NAME_EXIST("B000201", "用户已存在"),
    USER_EXIST("B000202", "用户记录已存在"),
    USER_SAVE_ERROR("B000203", "用户新增失败"),
    USER_UPDATE_ERROR("B000204", "用户更新失败"),
    USER_DELETE_ERROR("B000205", "用户删除失败"),
    USER_PASSWORD_ERROR("B000206", "用户密码错误"),
    USER_NAME_NULL("B000207", "用户名不能为空"),
    USER_PASSWORD_NULL("B000208", "用户密码不能为空"),
    USER_REAL_NAME_NULL("B000209", "用户真实姓名不能为空");

    private final String code;

    private final String message;

    UserErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }


}
